package com.egene.tw.base;

import android.app.Application;
import android.content.Context;
import android.content.res.Resources;

/**
 * Created by WZX on 2015/7/17.
 */
public class BaseApplication extends Application {
    static Context _context;
    static Resources _resource;

    @Override
    public void onCreate() {
        super.onCreate();
        _context = getApplicationContext();
        _resource = getResources();
    }

    public static Context context(){
        return _context;
    }

    public static String string(int id) {
        return _resource.getString(id);
    }
}
